package cn.bx.bid.service;

import cn.bx.bid.dao.RoleDao;
import cn.bx.bid.entity.Page;
import cn.bx.bid.entity.Userrole;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

//M V C
@Service
public class RoleService {
	public static final int PAGE_SIZE = Page.PAGE_SIZE;
	@Resource
	private  RoleDao dao;
	public List<Userrole> findALL() {
//		SqlSession s = MyBatisUtil.get();
//		try {
		//	RoleDao dao = s.getMapper(RoleDao.class);
			return dao.findALL();
//		} finally {
//			MyBatisUtil.close(s);
//		}
	}
}
